package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程信息业务对象 course
 *
 * @author ruoyi
 * @date 2025-06-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CourseBo extends BaseEntity {

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空", groups = { EditGroup.class })
    private Long courseId;

    /**
     * 课程代码
     */
    @NotBlank(message = "课程代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseCode;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseName;

    /**
     * 学分
     */
    @NotNull(message = "学分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal credit;

    /**
     * 课时
     */
    @NotNull(message = "课时不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hours;

    /**
     * 授课教师ID
     */
    @NotNull(message = "授课教师ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teacherId;

    /**
     * 教室
     */
    @NotBlank(message = "教室不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classroom;

    /**
     * 上课时间
     */
    @NotBlank(message = "上课时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String time;

    /**
     * 学期
     */
    @NotBlank(message = "学期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String semester;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
